﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UtilZ.Dotnet.Ex.Communication.Net.Base;

namespace UtilZ.Dotnet.Ex.Communication.Net.Web
{
    /// <summary>
    /// 消息输出事件参数
    /// </summary>
    public class MessageOutputArgs : EventArgs
    {
        /// <summary>
        /// 连接信息
        /// </summary>
        public NetLinkInfo LinkInfo { get; private set; }

        /// <summary>
        /// 消息
        /// </summary>
        public IWebSocketMessage Message { get; private set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="linkInfo">连接信息</param>
        /// <param name="message">消息</param>
        public MessageOutputArgs(NetLinkInfo linkInfo, IWebSocketMessage message)
        {
            this.LinkInfo = linkInfo;
            this.Message = message;
        }
    }
}
